LIHAT SEMUA: Python line fitting